package com.chuantou.yuba.api.to;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

public class BDPoiLocationTO implements Parcelable {
	// 经度
	@SerializedName("x")
	private double longitude;
	// 纬度
	@SerializedName("y")
	private double latitude;

	public BDPoiLocationTO() {
	}

	public BDPoiLocationTO(Parcel source) {
		this.latitude = source.readDouble();
		this.longitude = source.readDouble();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeDouble(latitude);
		dest.writeDouble(longitude);

	}

	public static final Creator<BDPoiLocationTO> CREATOR = new Creator<BDPoiLocationTO>() {

		@Override
		public BDPoiLocationTO[] newArray(int size) {
			return new BDPoiLocationTO[size];
		}

		@Override
		public BDPoiLocationTO createFromParcel(Parcel source) {
			return new BDPoiLocationTO(source);
		}
	};

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

}
